#include <iostream>
using std::cout;
using std::endl;
class Point{
public:
    Point(int x,int y,int z)
        :_x(x),
        _y(y),
        _z(z)
    {}
    void print(){
        cout<<_x<<","<<_y<<","<<_z<<endl;
    }

private:
    int _x;
    int _y;
   const int & _z;
};

void test(){
    Point p1(1,2,3);
    p1.print();

}

int main()
{
    test ();
    return 0;
}

